package com.entrogy.service;

import com.alibaba.fastjson.JSONObject;

import java.util.List;

public interface LeaveService {
	/**
	 * 请假页面的初始化
	 * @param uid
	 * @return
	 */
	JSONObject leaveInit(String uid);

	/**
	 * 家长请假的提交
     * @param uid
     * @param s_time
     * @param e_time
     * @param content
     * @param stu_name
     */
	String parentAskforLeave(String uid, String s_time, String e_time, String content, Integer stu_name);

	/**
	 * 获取请假数据
	 * @param uid
	 * @param currentPage
	 * @param selectType
	 * @return
	 */
	JSONObject leaveNewPage(String uid, int currentPage, int pageSize, Integer selectType);

	/**
	 * 请假审核
	 * @param uid
	 * @param listId
	 * @param deal
	 */
	JSONObject check(String uid, String listId, int deal);



    /**
     *  保安获取学生请假信息
     * @param course_id
     * @param schoolCode
     * @param selectDate
	 * @param isAgree
	 * @return
     */
    List<JSONObject> getLeaveRecord(String course_id, String schoolCode, String selectDate, Integer isAgree);

}
